import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import First from './views/first'
import Second from './views/second'
import Ff from './views/FF'
import SS from './views/SS'

Vue.use(VueRouter)
Vue.config.productionTip = false

const routes=[
  {
    path: "/first",
    component: First,
    children:[
      {
        path: "ff",
        component: Ff,
        children:[
          {
            path: "ss",
        component: SS,
          }
        ]
      }
    ]
  },
  {
    path: "/second",
    component: Second
  }
]

const router =new VueRouter({
  routes
})


new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
